<!--设计器-->
<template>
  <div class="nw-designer">
    <component :is="Designer" :ref="Designer"/>
  </div>
</template>
<script>
import Utils from '../../../../utils/Common'
import OK_NG from './OkNg.vue'

export default {
  name: 'Designer',
  components: {
    OK_NG
  },
  props: {
    designerName: {
      type: String,
      default: null
    }
  },
  watch: {
    designerName(n) {
      console.log('2222222222222222222')
      if (!Utils.IsEmpty(n)) {
        this.Designer = n
      }
    }
  },
  data() {
    return {
      Designer: null
    }
  },
  methods: {
    _ShowDesigner(Name) {
      console.log('444555555555555')
      this.Designer = Name
    }
  },
  mounted() {
  }
}
</script>

<style scoped lang="less">
.nw-designer {
  padding: 10px;
}
</style>
